//
//  UIResponder+LKFirstResponder.m
//  YuxiCloud
//
//  Created by LIUKUN-PC on 16/11/17.
//  Copyright © 2016年 ynnissi. All rights reserved.
//

#import "UIResponder+LKFirstResponder.h"

static __weak id currentFirstResponder;

@implementation UIResponder (LKFirstResponder)

+ (id)currentFirstResponder {
    currentFirstResponder = nil;
    [[UIApplication sharedApplication] sendAction:@selector(findFirstResponder:) to:nil from:nil forEvent:nil];
    return currentFirstResponder;
}
- (void)findFirstResponder:(id)sender {
    currentFirstResponder = self;
}

@end
